package com.springboot.base.springbootes.controller;


import com.springboot.base.springbootes.pojo.Hotel;
import com.springboot.base.springbootes.service.HotelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: 船长
 * @create: 2025-02-17 19:49
 **/

@RestController
public class baseController {

    @Resource
    private HotelService hotelService;

    @GetMapping("/list")
    public List<Hotel> list(){
        List<Hotel> list = hotelService.list();
        return list;
    }
}
